package com.ruoyi.supplier.domain.vo;

import java.math.BigDecimal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.excel.annotation.ExcelDictFormat;
import com.ruoyi.common.excel.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 商品规格视图对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */
@Data
@ExcelIgnoreUnannotated
public class ProductSkuVo {

    private static final long serialVersionUID = 1L;

    /**
     * 产品规格id
     */
    @ExcelProperty(value = "产品规格id")
    private Integer productSkuId;

    /**
     * 产品id
     */
    @ExcelProperty(value = "产品id")
    private Integer productId;

    /**
     * 产品sku记录索引 (由规格值id组成,下划线分隔)
     */
    @ExcelProperty(value = "产品sku记录索引 (由规格值id组成,下划线分隔)")
    private String specSkuId;

    /**
     * 产品编码
     */
    @ExcelProperty(value = "产品编码")
    private String productNo;

    /**
     * 产品价格
     */
    @ExcelProperty(value = "产品价格")
    private BigDecimal productPrice;

    /**
     * 产品划线价
     */
    @ExcelProperty(value = "产品划线价")
    private BigDecimal linePrice;

    /**
     * 产品底价
     */
    @ExcelProperty(value = "产品底价")
    private BigDecimal lowPrice;

    /**
     * 当前库存数量
     */
    @ExcelProperty(value = "当前库存数量")
    private Integer stockNum;

    /**
     * 产品重量(Kg)
     */
    @ExcelProperty(value = "产品重量(Kg)")
    private String productWeight;

    /**
     * 商户id
     */
    @ExcelProperty(value = "商户id")
    private Integer merchantId;

    /**
     * sku属性（json格式）
     */
    @ExcelProperty(value = "sku属性", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "j=son格式")
    private String skuAttrs;

    /**
     * 主图
     */
    @ExcelProperty(value = "主图")
    private String image;

    /**
     * 主图类型（1图片 2视频）
     */
    @ExcelProperty(value = "主图类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=图片,2=视频")
    private Integer imageType;

    /**
     * 视频链接
     */
    @ExcelProperty(value = "视频链接")
    private String video;

    /**
     * 仓库id
     */
    @ExcelProperty(value = "仓库id")
    private Integer stockId;

    /**
     * 上下架状态（0未上架 1已上架）
     */
    @ExcelProperty(value = "上下架状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=未上架,1=已上架")
    private Integer status;


}
